import axios from '@/libs/api.request.js'

export const jointlist = data =>{
  return axios.request({
    url: "/api/joint/list",
    method: "get",
    data:data
  })
}

export const jointgetInfo = (jointId)=>{
  return axios.request({
    method:"get",
    url:"/api/joint/getInfo/" + jointId,
    data:""
  })
}

export const jointlistJointById = (productId)=>{
  return axios.request({
    method:"get",
    url:"/api/joint/listJointById/" + productId,
    data:""
  })
}




export const jointadd = data =>{
  return axios.request({
    url: "/api/joint/add",
    method: "post",
    data:data
  })
}


export const jointedit = data =>{
  return axios.request({
    url: "/api/joint/edit",
    method: "put",
    data:data,
  })
}


export const updatepintuan = data =>{
  return axios.request({
    url: "/api/joint/updatepintuan",
    method: "put",
    data:data,
  })
}


